package com.push.web.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.push.common.annotation.Excel;
import com.push.common.core.domain.BaseEntity;

/**
 * 二级分类对象 biz_label_second
 *
 * @author yanxi
 * @date 2022-03-09
 */
public class BizLabelSecond extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 所属分类 */
    private Long parentId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String labelName;

    /** 分类代码 */
    @Excel(name = "分类代码")
    private String labelCode;

    /** 删除标志 */
    private String delFlag;

    /** 租户ID */
    private String tenantId;

    public BizLabelSecond() {
    }

    public BizLabelSecond(String labelName) {
        this.labelName = labelName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setLabelName(String labelName)
    {
        this.labelName = labelName;
    }

    public String getLabelName()
    {
        return labelName;
    }
    public void setLabelCode(String labelCode)
    {
        this.labelCode = labelCode;
    }

    public String getLabelCode()
    {
        return labelCode;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("labelName", getLabelName())
            .append("labelCode", getLabelCode())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("tenantId", getTenantId())
            .toString();
    }
}
